<style>
iframe {
	border: none;
}
#main {
	width: 220px;
	height: 500px;
}
</style>

<script src="common.js"></script>
<script>
var xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
xhr.onload = function() {
	var text = xhr.responseText;
	if(!isLogin(text)) {
		chrome.tabs.create({"url":"http://www.munpia.com"});
		window.close();
	} else {
		var frame = document.createElement('iframe');
		frame.id = "main";
		frame.src = "http://www.munpia.com/list_fav3.php";
		document.body.appendChild(frame);
	}
};
xhr.send(null);
chrome.extension.sendRequest({'action' : 'update'}, function(data){});
</script>
